r1="--jump $c"
c=ChainAaa
# -2. disable the chain (by deleting the JUMP rule)
sudo iptables --table filter --delete INPUT $r1

# -1. delete the chain
sudo iptables --table filter --delete-chain $c

# ==================================================
# ipv6
# -2. disable the chain (by deleting the JUMP rule)
sudo ip6tables --table filter --delete INPUT $r1

# -1. delete the chain
sudo ip6tables --table filter --delete-chain $c
